package com.hx.common.api;



import com.hx.common.domain.MiaoshaGoods;
import com.hx.common.to.OrderMessageTo;
import com.hx.common.vo.GoodsVo;

import java.util.List;

/**
 * @Author wonghiu
 * @Date 2021/6/4 19:17
 * @Version 1.0.1
 */
public interface MiaoshaGoodsService {
    List<GoodsVo> listGoodsVo();

    GoodsVo getGoodsVoByGoodsId(long goodsId);
    GoodsVo getMiaoShaGoodsVoByGoodsId(long goodsId);

    void submitGoods2Cache();
    List<GoodsVo> listMiaoShaGoodsVo();
    Integer check();

    MiaoshaGoods getGoodsById(Long goodsId);

    boolean releaseStock(OrderMessageTo miaoshaOrder);
    boolean reduceStock(OrderMessageTo miaoshaOrder);
}
